const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const ObjectId = mongoose.Types.ObjectId;

const schema = new Schema({
	_id: { type: ObjectId },
	name: { type: String, default: "" },
	author: {
		type: mongoose.Schema.Types.ObjectId,
		ref: "user",
	},
});

const model = mongoose.model("grouplist", schema, "grouplist");

module.exports = model;
